import 'dart:ffi';

import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/get_device_info_entity.g.dart';
import 'dart:convert';
export 'package:safetymonitor/generated/json/get_device_info_entity.g.dart';

@JsonSerializable()
class GetDeviceInfoEntity {
	GetDeviceInfoEntity();

	factory GetDeviceInfoEntity.fromJson(Map<String, dynamic> json) => $GetDeviceInfoEntityFromJson(json);
	int? id = 0;
	String? deviceName = '';
	String? systemName = '';
	String? deviceCode = '';
	int? deviceLevel = 0;
	String? deviceLevelName ='';
	String? videoStream ='';
	int? isUse = 0;
	double? longitude = 0.0;
	double? latitude =  0.0;
	double? altitude =  0.0;
	String? deviceAddr = '';
	String? deviceTypeName = '';
	int? deviceTypeId = 0;
	int? companyId = 0;
	String? companyName = '';
	String? manufacturer = '';
	String? brand = '';
	String? installTime = '';
	int? deviceStatus = 0;
	String? deviceDesc = '';
	int? useType = 0;
	int? createTime = 0;
	String? outNetAddress = '';

	Map<String, dynamic> toJson() => $GetDeviceInfoEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}